<!-- Id Field -->
<div class="form-group">
    {!! Form::label('id', 'Id:') !!}
    <p>{!! $goods->id !!}</p>
</div>

<!-- Sn Field -->
<div class="form-group">
    {!! Form::label('sn', '编码:') !!}
    <p>{!! $goods->sn !!}</p>
</div>

<!-- Name Field -->
<div class="form-group">
    {!! Form::label('name', '名称:') !!}
    <p>{!! $goods->name !!}</p>
</div>

<!-- Click Count Field -->
<div class="form-group">
    {!! Form::label('click_count', '点击量:') !!}
    <p>{!! $goods->click_count !!}</p>
</div>

<!-- Sales Count Field -->
<div class="form-group">
    {!! Form::label('sales_count', '销售量:') !!}
    <p>{!! $goods->sales_count !!}</p>
</div>

<!-- Brand Field -->
<div class="form-group">
    {!! Form::label('brand', '品牌:') !!}
    <p>{!! $goods->brand !!}</p>
</div>

<!-- Provider Name Field -->
<div class="form-group">
    {!! Form::label('provider_name', '供货商:') !!}
    <p>{!! $goods->provider_name !!}</p>
</div>

<!-- Number Field -->
<div class="form-group">
    {!! Form::label('number', '数量:') !!}
    <p>{!! $goods->number !!}</p>
</div>

<!-- Market Price Field -->
<div class="form-group">
    {!! Form::label('market_price', '市场价:') !!}
    <p>{!! $goods->market_price !!}</p>
</div>

<!-- Sale Price Field -->
<div class="form-group">
    {!! Form::label('sale_price', '销售价:') !!}
    <p>{!! $goods->sale_price !!}</p>
</div>

<!-- Unit Field -->
<div class="form-group">
    {!! Form::label('unit', '单位:') !!}
    <p>{!! $goods->unit !!}</p>
</div>

<!-- Sale Start Date Field -->
<div class="form-group">
    {!! Form::label('sale_start_date', '销售开始时间:') !!}
    <p>{!! $goods->sale_start_date !!}</p>
</div>

<!-- Sale End Date Field -->
<div class="form-group">
    {!! Form::label('sale_end_date', '销售结束时间:') !!}
    <p>{!! $goods->sale_end_date !!}</p>
</div>

<!-- Is On Sale Field -->
<div class="form-group">
    {!! Form::label('is_on_sale', '是否销售:') !!}
    <p>{!! $goods->is_on_sale !!}</p>
</div>

<!-- Is Best Field -->
<div class="form-group">
    {!! Form::label('is_best', '是否佳品:') !!}
    <p>{!! $goods->is_best !!}</p>
</div>

<!-- Is New Field -->
<div class="form-group">
    {!! Form::label('is_new', '是否新品:') !!}
    <p>{!! $goods->is_new !!}</p>
</div>

<!-- Is Hot Field -->
<div class="form-group">
    {!! Form::label('is_hot', '是否热卖:') !!}
    <p>{!! $goods->is_hot !!}</p>
</div>

<!-- Sort Field -->
<div class="form-group">
    {!! Form::label('sort', '排序:') !!}
    <p>{!! $goods->sort !!}</p>
</div>

<!-- Desc Field -->
<div class="form-group">
    {!! Form::label('desc', '描述:') !!}
    <p>{!! $goods->desc !!}</p>
</div>

<!-- Image Field -->
<div class="form-group">
    {!! Form::label('image', '封面:') !!}
    <p>@mpic($goods->image)</p>
</div>

<div class="form-group col-sm-12">
    {!! Form::label('cat_id', '分类:') !!}

    @foreach($goods->categories as $cat)
        {{ $cat->name }}
    @endforeach
</div>

@foreach($goods->attributes as $attribute)
    <div class="form-group col-sm-12 attribute-div">
        <input type="hidden" name="has_attribute[]" value="{{$attribute->id}}">
        属性名:<input name="attribute_{{$attribute->id}}_name" value="{{$attribute->name}}" type="text">
        市场价:<input name="attribute_{{$attribute->id}}_market_price" value="{{ $attribute->market_price }}" type="text">
        优惠价:<input name="attribute_{{$attribute->id}}_sale_price" value="{{ $attribute->sale_price }}" type="text">
        数量:<input name="attribute_{{$attribute->id}}_number" value="{{ $attribute->number }}" type="text">
        销售量:<input name="attribute_{{$attribute->id}}_sales_count" value="{{ $attribute->sales_count }}" type="text">
    </div>
@endforeach

@foreach($goods->slideshow as $content)
    @spic($content->url)
@endforeach
<br>
@foreach($goods->contents as $content)
    @mpic($content->url)
@endforeach
<!-- Created At Field -->
<div class="form-group">
    {!! Form::label('created_at', '创建时间:') !!}
    <p>{!! $goods->created_at !!}</p>
</div>

<!-- Updated At Field -->
<div class="form-group">
    {!! Form::label('updated_at', '更新时间:') !!}
    <p>{!! $goods->updated_at !!}</p>
</div>


